package com.nvc.homeplan;

import com.nvc.homeplan.PlanDetailPage.JavaScriptInterface;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.os.Vibrator;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.util.Log;
import android.view.Display;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.WindowManager;
import android.webkit.WebSettings;
import android.webkit.WebView;

public class ImageViewPage extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.setContentView(R.layout.image_view_page);
        
        // get the current review from the Application (global state placed there)
        HomePlanApplication application = (HomePlanApplication) getApplication();
        
        WebView webView = (WebView) findViewById(R.id.webview);
        WebSettings webSettings = webView.getSettings();
        webSettings.setJavaScriptEnabled(true);
        webView.loadUrl( Constants.baseDataUrl + "mobilePlanImageView.cfm?imageurl=" + application.imageURL);
        
        webView.loadUrl( application.imageURL );
	}
}
